package com.durian.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 是否上架枚举  (1 已上架，0 未上架)
 *
 * @author Durian
 * @date 2023/11/23
 */
@Getter
@AllArgsConstructor
public enum BookStatus implements IEnum<Integer> {
    PutAway(1, "已上架"),
    UnPutAway(0, "未上架");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String name;
}
